﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000AE RID: 174
	internal class Int32Int64 : IInt64Decoder
	{
		// Token: 0x060002B9 RID: 697 RVA: 0x0000B954 File Offset: 0x00009D54
		private Int32Int64()
		{
		}

		// Token: 0x060002BA RID: 698 RVA: 0x0000B95C File Offset: 0x00009D5C
		public long Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 5;
			return (long)((long)bytes[offset + 1] << 24) + (long)((long)bytes[offset + 2] << 16) + (long)((long)bytes[offset + 3] << 8) + (long)bytes[offset + 4];
		}

		// Token: 0x040000CF RID: 207
		internal static readonly IInt64Decoder Instance = new Int32Int64();
	}
}
